<template>
  <el-table
      class="table"
      :data="tableData"
      stripe
      style="width: 100%">
    <el-table-column
        prop="address"
        label="选择"
        width="50">
      <template slot-scope="scope">
        <el-radio v-model="radioSelect"
                  :label="scope.row.orderNumber"
                  @change.native="handleRadioChange(scope.row.orderNumber,scope.row.status)"
        >&nbsp;
        </el-radio>
      </template>
    </el-table-column>
    <el-table-column
        prop="orderNumber"
        label="单号"
        width="160">
    </el-table-column>
    <el-table-column
        prop="createTime"
        label="下单时间"
        width="180">
    </el-table-column>
    <el-table-column
        prop="validEndTime"
        label="询价有效截止期"
        width="180">
    </el-table-column>
    <el-table-column
        prop="originPlace"
        label="始发地"
        width="100">
    </el-table-column>
    <el-table-column
        prop="destination"
        label="目的地"
        width="100">
    </el-table-column>
    <el-table-column
        prop="loading"
        label="计划发车时间"
        width="180">
    </el-table-column>
    <el-table-column
        prop="unload"
        label="计划到达时间"
        width="180">
    </el-table-column>
    <el-table-column
        prop="name"
        label="货物名称"
        width="140">
    </el-table-column>
    <el-table-column
        prop="weights"
        label="重量kg"
        width="100">
    </el-table-column>
    <el-table-column
        prop="fee"
        label="运费总计￥"
        width="140">
    </el-table-column>
    <el-table-column
        prop="status"
        label="状态"
        width="100">
    </el-table-column>


  </el-table>
</template>

<script>
export default {
  name: "ToBe",
  props:{
    tableData: [],
    identity: String,
  },
  data(){
    return{
      radioSelect: '1',
      status: 0,
    }
  },
  methods:{


    // 选择单选框
    handleRadioChange(number,status) {
      this.radioSelect = number
      this.status = status
    },
  }
}
</script>

<style scoped>

</style>